package com.hsteach.web.controller.calendar.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "AddHolidayDto", description = "添加节假日")
@Data
public class AddHolidayDto implements Serializable {

    /** 周行事历名称 */
    @ApiModelProperty(value = "周行事历id", required = true)
    private Long calendarId;

    /** 周行事历名称 */
    @ApiModelProperty(value = "节假日名称", required = true)
    private String holidayName;

    /** 节假日日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "节假日日期 yyyy-MM-dd", required = true)
    private Date holidayDay;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间 yyyy-MM-dd", required = true)
    private Date holidayBegin;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间 yyyy-MM-dd", required = true)
    private Date holidayEnd;
}
